package com.jtlrm.ckd.entity;

import com.jtlrm.ckd.config.UrlConstants;
import com.jtlrm.ckd.util.ContactList.SlideBarEntity;

public class WorkerEntity extends SlideBarEntity {
    private String id;

    private String easemobId;

    private String headPicture;

    private int sex;

    private int role;

    private String hospital;

    private String name;

    private String namePinyin;

    @Override
    public String getAvatar() {
        return getHeadPicture();
    }

    @Override
    public String getiId() {
        return easemobId;
    }

    @Override
    public String getuId() {
        return id;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getEasemobId() {
        return easemobId;
    }

    public void setEasemobId(String easemobId) {
        this.easemobId = easemobId;
    }

    public String getHeadPicture() {
        return UrlConstants.IMAGE_URL + headPicture;
    }

    public void setHeadPicture(String headPicture) {
        this.headPicture = headPicture;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public int getRole() {
        return role;
    }

    public void setRole(int role) {
        this.role = role;
    }

    public String getHospital() {
        return hospital;
    }

    public void setHospital(String hospital) {
        this.hospital = hospital;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNamePinyin() {
        return namePinyin;
    }

    public void setNamePinyin(String namePinyin) {
        this.namePinyin = namePinyin;
    }

    @Override
    public String getNameStr() {
        return getName();
    }
}
